package com.hq.base.web;

import com.hq.common.domain.Result;
import com.hq.common.utils.BeanUtil;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by hezj on 2015/7/2 0002.
 */
@Controller
@RequestMapping("/rest/test")
public class TestController {
	
    @RequestMapping("/createCode")
    @ResponseBody
    public Result createCode(@RequestParam("tableName") String tableName,@RequestParam("domainName") String domainName,@RequestParam("packageName") String packageName){
        BeanUtil.createHi(tableName,domainName,packageName,"d:\\");
        Result result = new Result();
        return result;
    }

    @RequestMapping("/grant/createCode")
    @ResponseBody
    public Result testGrantNoMvc(){
        Result result = new Result();
        return result;
    }
}
